/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.wlhy.service;


import com.msk.wlhy.domain.Area;
import com.msk.wlhy.mapper.AreaDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

/**
 * @author llh
 * @date 2023/6/5
 * @return 
 * @description       
 */
@Service
@Transactional(readOnly = true)
public class AreaService {

	@Autowired
	private AreaDao areaDao;
	
	private static final String CACHE_AREA_DATA_LIST = "AREA_DATA_JSON_OBJECT";
	private static final String CACHE_AREA_DATA_ARRAYLIST = "AREA_DATA_JSON_OBJECT_ARRAY";
	
	public List<Area> findAll(){
		return areaDao.findAllList(new Area());
	}
	
	public Area getById(String id){
		return areaDao.getById(id);
	}

}
